CREATE TABLE [dbo].[TTCNTA_USUA]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_FORM] [dbo].[TD_VC_008] NOT NULL,
[CO_USUA] [dbo].[TD_VC_008] NOT NULL,
[CO_CNTA_EMPR] [dbo].[TD_VC_020] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTCNTA_US__CO_US__552B87C2] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTCNTA_US__FE_US__561FABFB] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTCNTA_US__CO_US__5713D034] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTCNTA_US__FE_US__5807F46D] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTCNTA_USUA] ADD CONSTRAINT [PK__TTCNTA_U__1D0CA74D7B5C1DA2] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_FORM], [CO_USUA], [CO_CNTA_EMPR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTCNTA_USUA] ADD CONSTRAINT [FK__TTCNTA_US__CO_EM__48F09966] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
